<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@include file="theme/Header.jsp" %>
<%@page isErrorPage="true" import="java.io.*" %>
<style type="text/css" title="currentStyle">
    @import "themes/css/demo_page.css";
    @import "themes/css/demo_table.css";
</style>
<script type="text/javascript" language="javascript"
src="themes/js/jquery.dataTables.js"></script>
<script type="text/javascript" >
    $().ready(function() {
        $('#back').click(function(){
            history.go(-1);
            return false
        });

    });
    $(document).ready(function() {
        $('#data').dataTable( {
            "sPaginationType": "full_numbers" ,
            "bAutoWidth": false 
        });
    } );
</script>
<div class="site-root">
    <div>
        <a href="#">[ERR001- ข้อมูลผิดพลาด]</a>
    </div>
</div>
<div class="button-bar">
    <fieldset>
        <div class="buttons">
            <button class="positive" id="back">
                <img  src="themes/default/images/icons/arrow_back.gif" alt="" width="16" height="16"/>Back
            </button>
        </div>
    </fieldset>
</div>
<c:choose>
    <c:when test="${empty errors}">
    </c:when>
    <c:otherwise>
        <br>
        <fieldset>
            <table width="100%" border="0"  cellpadding="4" cellspacing="1">
                <thead>
                    <tr style="background: #3B5998;color: #FFF">
                        <th width="80px">Error No</th>
                        <th width="100px">Error Code</th>
                        <th>Error Message</th>
                    </tr>
                </thead>
                <tbody>
                    <c:forEach items="${errors}" var="result" varStatus="i">
                        <tr bgcolor="${i.count%2==0?"#FFFFFF":"#EEEFF4"}">
                            <td align="center">${i.count}</td>
                            <td>${result.code}</td>
                            <td>${result.message}</td>
                        </tr>
                    </c:forEach>
                </tbody>
            </table>

        </fieldset>
    </div>
</c:otherwise>
</c:choose>
<%@include file="theme/Footer.jsp" %>